package define

type AttendanceParams struct {
	CourseId  int `v:"required#排课id不能为空"`
	CardId    int `v:"required#学员卡id不能为空"`
	Deduct    int `v:"required#排课id不能为空"`
	StudentId int `v:"required#学生id不能为空"`
	SchoolId  int `v:"required#学校id不能为空"`
	CampusId  int `v:"required#校区id不能为空"`
	Status    int `v:"required#考勤状态不能为空"`
}

type StudentCardRequest struct {
	SchoolID     uint `v:"required#学校不能为空"`
	CampusID     uint `v:"required#校区不能为空"`
	CardTypeId   uint `v:"required#卡类型不能为空"`
	StudentId    uint `v:"required#学生id不能为空"`
	IsAutoActive uint
	StartTime    int64 `v:"length:0,20#开始时间长度应当在:min到:max之间"`
	ExpireTime   int
	NumSum       float64
	Remark       string `v:"length:0,500#备注长度应当在:min到:max之间"`
}

type StudentRequest struct {
	StudentName string `v:"required|length:1,10#学生姓名不能为空|名称长度应当在:min到:max之间"`
	SchoolID    uint   `v:"required#学校不能为空"`
	CampusID    uint   `v:"required#校区不能为空"`
	Sex         string
	Avatar      string `v:"length:1,200#头像长度应当在:min到:max之间"`
	Address     string `v:"length:1,50#地址长度应当在:min到:max之间"`
	SchoolName  string `v:"length:0,50#学校名称长度应当在:min到:max之间"`
	Birthday    string `v:"length:0,20#生日长度应当在:min到:max之间"`
	Remark      string `v:"length:0,100#备注长度应当在:min到:max之间"`
	Status      string
}
